//
//  GenericCalculations.h
//  FuelLogFree
//
//  Created by Olaf on 8/24/10.
//  Copyright 2010 olafgreck. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Gas.h"

@interface GenericCalculations : NSObject {
//	int pumpIndex;
	Gas * gas;
	NSString * dateString;
	NSString * odometerString;
//	float  rawConsumedVolume;
//	float rawConsumption;
	NSString * consumptionString;
	NSString * tripDistanceString;
	NSString * fuelvolumeString;
	NSString * costString;
	
}
//@property int pumpIndex;
@property (nonatomic, copy) NSString * dateString;
@property (nonatomic, copy) NSString * odometerString;
//@property float  rawConsumedVolume;
//@property float rawConsumption;

@property (nonatomic, copy) NSString * fuelvolumeString;
@property (nonatomic, copy) NSString * costString;


@property (nonatomic, retain) Gas *gas;
-(id) init;
-(id) initWithGas: (Gas *) currentGas;

-(BOOL)isConsumptionBetweenAvailable:(int)startIndex;
-(BOOL)isConsumptionBetweenAvailable:(int)startIndex endIndex:(int)endIndex;
-(BOOL)distanceBetween:(int)startIndex endIndex:(int)endIndex;

//-------------

- (NSString *)consumptionString;
- (void)setConsumptionString:(float)value;

- (NSString *)tripDistanceString;
- (void)setTripDistanceString:(float )value;

@end
